package ca.skygazer.shared.telescope;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

public class EyepieceModel {

	@SuppressWarnings("unused")
	@PrimaryKey	
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
    private String encodedKey;

    @Persistent
	private String name;
    @Persistent
    private String brand;
    @Persistent
	private double focalLength;
    @Persistent
	private double apparentFieldOfView;
	
	// Constructors
	public EyepieceModel(){
	}
	
	public EyepieceModel(String name, String brand, double focalLength, double apparentFieldOfView){
		this.name=name;
		this.brand=brand;
		this.focalLength=focalLength;
		this.apparentFieldOfView=apparentFieldOfView;
	}
	
	
	// Getters and Setters
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getBrand() {
		return brand;
	}
	public void setBrand(String brand) {
		this.brand = brand;
	}
	public double getFocalLength() {
		return focalLength;
	}
	public void setFocalLength(double focalLength) {
		this.focalLength = focalLength;
	}
	public double getApparentFieldOfView() {
		return apparentFieldOfView;
	}
	public void setApparentFieldOfView(double apparentFieldOfView) {
		this.apparentFieldOfView = apparentFieldOfView;
	}

	
	
	
}
